package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.Task;
import com.yxx.entityModel.vo.query.TaskQuery;
import com.yxx.entityModel.vo.response.TaskBackResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/2/16
 * @apiNote
 */
@Repository
public interface TaskMapper extends BaseMapper<Task> {
    /**
     * 查询定时任务数量
     * @param taskQuery
     * @return
     */
    Long selectTaskCount(@Param("param") TaskQuery taskQuery);


    /**
     * 查询定时任务列表
     * @param taskQuery
     * @return
     */
    List<TaskBackResponse> selectTaskList(@Param("param") TaskQuery taskQuery);
}
